package com.chs.recoginition.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * @Author CHS
 * @Date 2022/8/7 23:56
 * @Version 1.0
 **/

/**
 * 关卡级别
 */
@Getter
public enum Enum_CodeGrade {

    /**
     * 基础
     */
    GRADE_BASICS(0, "基础"),

    /**
     * 综合
     */
    GRADE_COMPREHENSIVE(1, "综合");
    @EnumValue // 标记数据库存的值是val
    private int value = 0;
    @JsonValue
    private String text = "基础";

    private Enum_CodeGrade(int value, String text) {
        this.value = value;
        this.text = text;
    }
}
